<?php
/* @var $this ArticleController */
/* @var $model Article */

$this->breadcrumbs=array(
	'Articles'=>array('index'),
	$model->title,
);

if(!empty($categorytype)){
    $this->menu=array(
        array('label'=>'产品分类', 'url'=>array('column/padmin')),
        array('label'=>'创建分类', 'url'=>array('column/pcreate')),
        array('label'=>'产品列表', 'url'=>array('article/padmin')),
        array('label'=>'创建产品', 'url'=>array('article/pcreate')),
    );
}else{
    $this->menu=array(
        array('label'=>'文章分类', 'url'=>array('column/admin')),
        array('label'=>'创建分类', 'url'=>array('column/create')),
        array('label'=>'文章列表', 'url'=>array('article/admin')),
        array('label'=>'创建文章', 'url'=>array('article/create')),
    );
}
?>

<h1>显示</h1>
<div class="Action">
    <a href="<?php echo Yii::app()->request->urlReferrer; ?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/admin/jiantou.png" style=""></a>
</div>
<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
    'itemCssClass'=>array('oddtablscss', 'eventablecss'),
	'attributes'=>array(
//		'id',
		'title',
		'content',
//		'cover',
        array(
            'name'=>'cover',
            'value'=>CHtml::image(".".$model->cover,'',array("width"=>422)),
            'type'=>'raw',   //这里是原型输出
        ),
		'hit',
//		'orderby',
        'column.name',
//		'companyid',
		'createtime',
	),
)); ?>
